<template>
  <div class="FunctionTabs">
    <!-- <router-view></router-view> -->
    <!-- 切换router-link的class可以在router.js新建router对象中设置 linkActiveClass -->
    <router-link class="FunctionTab" :to="{ path: '/music/playlist' }">正在播放</router-link>
    <router-link class="FunctionTab" :to="{ path: '/music/toplist' }">推荐</router-link>
    <router-link class="FunctionTab" :to="{ path: '/music/search' }">搜索</router-link>
    <router-link class="FunctionTab" :to="{ path: '/music/userlist' }">我的歌单</router-link>
    <router-link class="FunctionTab" :to="{ path: '/music/historylist' }">我听过的</router-link>
  </div>
</template>

<script>

export default {
  name: 'FunctionTabs',
  data() {
    return {
      active: true
    }
  }
}
</script>

<style lang="scss" scoped>
  .FunctionTabs {
    display: flex;
    gap: 10px;
    .FunctionTab {
      display: block;
      padding: 0 25px;
      border-radius: 2px;
      border: 1px solid hsla(0, 0%, 100%, .6);
      background-color: transparent;
      text-align: center;
      text-decoration: none;
      line-height: 40px;
      height: 40px;
      color: hsla(0, 0%, 100%, .6);
      font-size: 13px;
      max-width: 60px;
      cursor: pointer;

      &:hover,
      &.active {
        color: #fff;
        border: 1px solid #fff;
      }
    }
  }
</style>